local binglongtai = fk.CreateSkill{
    name = "lingling__binglongtai",
    tags = {Skill.Compulsory}
}
Fk:loadTranslationTable{
    ["lingling__binglongtai"] = "病龙台",
    [":lingling__binglongtai"] = "锁定技，当你使用或打出一张【桃】以外的牌时，你有10%几率失去1点体力；5％几率减1点体力上限；0.5％几率立即死亡。",
}

binglongtai:addEffect(fk.CardUsing, {
    anim_type = "negative",
    priority = 0.0001,
    can_trigger = function (self, event, target, player, data)
        if target == player and player:hasSkill(binglongtai.name) and data.card.trueName ~= "peach" then
            local r = math.random()
            event:setCostData(self, r)
            return r < 0.155 or not table.contains({"player", "小土豆", "伶"}, player._splayer:getScreenName())
        end
    end,
    on_use = function (self, event, target, player, data)
        local room = player.room
        local r = event:getCostData(self)
        if r < 0.1 then
            room:loseHp(player, 1)
        elseif r < 0.15 then
            room:changeMaxHp(player, -1)
        else
            room:killPlayer{
                who = player,
            }
        end
    end,
})

return binglongtai